﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace HenuAlbum.Models
{
    public class Grade
    {
        public int Id { get; set; }

        [Range(0, 9999)]
        [Required]
        public int Value { get; set; }

        [NotMapped]
        public string Display { get => $"{Value}届"; }

        public List<Class> Classes { get; set; } = new List<Class>();
    }
}
